package com.leadingsoft.pwxk.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.leadingsoft.pwxk.dto.DrainInfoDto;
import com.leadingsoft.pwxk.service.DrainInfoService;

import io.swagger.annotations.Api;


/**
 * @author: lipan 2018年5月17日
 * @description: ( 排放口信息 )
 * 
 */
@Api(description = "废水排放口信息")
@RestController
@RequestMapping("api/drainfo")
public class DrainInfoController {
	

	@Autowired
	private DrainInfoService drainInfoService;

	@GetMapping("/{dataid}")
	List<DrainInfoDto> get(@PathVariable(value = "dataid") String dataid) {
		return drainInfoService.findByDataId(dataid);
	}

}
